/**
 * Created by 小敏哥 on 2017/9/29.
 */
import apiHelper from './apiHelper';

class TmallLoginService {
    login(data) {
        let baseApiUrl=location.href.indexOf('https')>=0?'https://bl.cx580.com':'http://webtest.cx580.com:20006';
        let requestParam = {
            url: `${baseApiUrl}/auth/alqc2017`,
            data: {
                method: 'post',
                body: data
            }
        };
        return apiHelper.fetch(requestParam);
    }
}

export default new TmallLoginService();